package com.wpre.lotterysystem.service;

import com.wpre.lotterysystem.controller.param.UserLoginParam;
import com.wpre.lotterysystem.controller.param.UserPasswordLoginParam;
import com.wpre.lotterysystem.controller.param.UserRegisterParam;
import com.wpre.lotterysystem.service.dto.UserDTO;
import com.wpre.lotterysystem.service.dto.UserLoginDTO;
import com.wpre.lotterysystem.service.dto.UserRegisterDTO;
import com.wpre.lotterysystem.service.enums.UserIdentityEnum;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: LianBao
 * Date: 2024-12-11
 * Time: 16:38
 */
public interface UserService {

    /**
     * 注册
     */
    UserRegisterDTO register(UserRegisterParam param);

    /**
     * 用户登录
     *
     * @param param
     * @return
     */
    UserLoginDTO login(UserLoginParam param);

    /**
     * 根据身份查询人员列表,如果身份信息为空,查询各个人员身份列表
     *
     * @param identity
     * @return
     */
    List<UserDTO> findBaseUserInfo(UserIdentityEnum identity);
}
